string = "aabcddd"
dicss={}
string1=""
for i in string:
    if i not in dicss:
        dicss[i]=1
    else:
        dicss[i]+=1
# print(dicss)
mins=min(dicss.values())
# print(mins)
for i in string:
    if dicss[i]==mins:
        continue
    string1 += i
print(string1)